package com.ts.main.admin.mapper;

import com.ts.main.admin.dto.ProductDto;
import com.ts.main.admin.dto.ProductSearchPageDto;
import com.ts.main.admin.entity.ProductEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ts.main.admin.vo.ProductVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lk
* @description 针对表【t_product(商品表)】的数据库操作Mapper
* @createDate 2025-06-09 00:56:13
* @Entity generator.domain.TProduct
*/
public interface ProductMapper extends BaseMapper<ProductEntity> {

    List<ProductVo> getProductPage(@Param("dto") ProductSearchPageDto dto);

    ProductVo getProductDetails(@Param("productId") Integer productId);

    Boolean saveProduct(@Param("dto") ProductDto dto);

}




